package com.cnaaa.pay.vo.alipay;

import com.alibaba.fastjson.annotation.JSONField;
import com.cnaaa.pay.entity.Trade;
import com.cnaaa.pay.vo.TradeStatusVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 2018/10/31 Create by 郭文梁
 * AlipayTradeStatus
 * 支付宝查询到的交易状态
 *
 * @author 郭文梁
 * @date 2018/10/31
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class AlipayTradeStatus extends TradeStatusVo {
    {
        setPayBy(Trade.ALIPAY);
    }

    private String code;
    private String msg;
    @JSONField(name = "buyer_logon_id")
    private String buyerLogon;
    @JSONField(name = "buyer_pay_amount")
    private String buyerPay;
    @JSONField(name = "buyer_user_id")
    private String buyerUserId;
    @JSONField(name = "buyer_user_type")
    private String buyerUserType;
    @JSONField(name = "invoice_amount")
    private String invoiceAmount;
    @JSONField(name = "out_trade_no")
    private String outTrade;
    @JSONField(name = "point_amount")
    private String pointAmount;
    @JSONField(name = "receipt_amount")
    private String receiptAmount;
    @JSONField(name = "send_pay_date")
    private String sendPay;
    @JSONField(name = "total_amount")
    private String totalAmount;
    @JSONField(name = "trade_no")
    private String tradeNo;
    @JSONField(name = "trade_status")
    private String tradeStatus;
}
